<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<c:set var="grant_code">
	<x:out select="$xmlData/data/proposal/grant_code" />
</c:set>
<c:set var="sub_grant_code">
	<x:out select="$xmlData/data/proposal/sub_grant_code" />
</c:set>


<div class="t_bar">经费预算 （单位：万元）</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="budget1" cellspacing="1">
	<tr align="center" class="li_2">
		<td colspan="2">项目总投资</td>
		<td colspan="2">已完成投资</td>
		<td colspan="2">计划新增投资</td>
		<td colspan="2">申请专项经费</td>
	</tr>
	<tr align="center" class="li_1">
		<td colspan="2">&nbsp;<x:out
				select="$xmlData/data/budgets/input_total" /></td>

		<td colspan="2">&nbsp;<x:out
				select="$xmlData/data/budgets/already_input_total" /></td>

		<td colspan="2">&nbsp;<x:out
				select="$xmlData/data/budgets/add_research" /></td>

		<td colspan="2">&nbsp;<x:out
				select="$xmlData/data/budgets/apply_money" /></td>
	</tr>
</table>
<br />
<div class="t_bar">已完成投资来源（单位：万元）</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="budget1" cellspacing="1">
	<tr align="center" class="li_2">
		<td rowspan="2">合计</td>
		<td rowspan="2">单位自筹</td>
		<td rowspan="2">银行贷款</td>
		<td colspan="3">政府资助</td>
		<td rowspan="2">其他来源</td>
	</tr>
	<tr align="center" class="li_2">
		<td>国家</td>
		<td>省级</td>
		<td>市级</td>
		<!-- <td>区级</td> -->
	</tr>
	<tr align="center" class="li_1">
		<td>&nbsp;<x:out
				select="$xmlData/data/budgets/source_already_total" /></td>
		<td>&nbsp;<x:out select="$xmlData/data/budgets/own_fund_over" /></td>

		<td>&nbsp;<x:out select="$xmlData/data/budgets/bank_fund_over" /></td>

		<td>&nbsp;<x:out select="$xmlData/data/budgets/country_fund_over" /></td>

		<td>&nbsp;<x:out
				select="$xmlData/data/budgets/provincial_fund_over" /></td>

		<td>&nbsp;<x:out select="$xmlData/data/budgets/city_fund_over" /></td>
		<%-- <td >&nbsp;<x:out select="$xmlData/data/budgets/area_fund_over" /></td> --%>
		<td colspan="2">&nbsp;<x:out
				select="$xmlData/data/budgets/other_fund_over" /></td>
	</tr>

</table>
<br />
<div class="t_bar">计划新增投资来源（单位：万元）</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	id="budget1" cellspacing="1">
	<tr align="center" class="li_2">
		<td rowspan="2">合计</td>
		<td rowspan="2">单位自筹</td>
		<td rowspan="2">银行贷款</td>
		<td colspan="3">政府资助</td>
		<td rowspan="2">其他来源</td>
	</tr>
	<tr align="center" class="li_2">
		<td>国家</td>
		<td>省级</td>
		<td>市级</td>
		<!-- <td>区级</td> -->
	</tr>
	<tr align="center" class="li_1">
		<td>&nbsp;<x:out select="$xmlData/data/budgets/source_add_total" /></td>
		<td>&nbsp;<x:out select="$xmlData/data/budgets/own_fund" /></td>

		<td>&nbsp;<x:out select="$xmlData/data/budgets/bank_fund" /></td>



		<td>&nbsp;<x:out select="$xmlData/data/budgets/country_fund" /></td>

		<td>&nbsp;<x:out select="$xmlData/data/budgets/provincial_fund" /></td>

		<td>&nbsp;<x:out select="$xmlData/data/budgets/city_fund" /></td>
		<%-- <td >&nbsp;<x:out select="$xmlData/data/budgets/area_fund" /></td> --%>
		<td colspan="2">&nbsp;<x:out
				select="$xmlData/data/budgets/other_fund" /></td>
	</tr>

</table>
<br />
<div class="t_bar">计划新增投资支出情况（单位：万元）</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	cellspacing="1">
	<thead>
		<tr class="li_1" style="border: 1px solid #B7D1E6">
			<td class="TblHead" align="center" width="25%">支出科目</td>
			<td class="TblHead" align="center" width="20%">新增投资总额</td>
			<td class="TblHead" align="center" width="20%">专项经费</td>
			<td class="TblHead" align="center" width="35%">说明</td>
		</tr>
	</thead>
	<tbody>
		<x:forEach select="$xmlData/data/budget/invest_detail/invest"
			var="invest">
			<tr>
				<td align="left" style="padding-left: 20px">&nbsp;<x:out
						select="$invest/name" /></td>
				<td align="center">&nbsp;<x:out select="$invest/total_invest" /></td>
				<td align="center">&nbsp;<x:out select="$invest/total_fund" /></td>
				<td >&nbsp;<x:out select="$invest/total_allot" /></td>
			</tr>
		</x:forEach>
	</tbody>
</table>
<br />
<div class="t_bar">需增添的主要仪器设备</div>
<table class="t_css" width="100%" border="0" cellpadding="0"
	cellspacing="1">
	<thead>
		<tr style="border: 1px solid #B7D1E6">
			<th class="TblHead" align="center" width="4%">序号</th>
			<th class="TblHead" align="center" width="9%">设备名称</th>
			<th class="TblHead" align="center" width="9%">型号</th>
			<th class="TblHead" align="center" width="9%">价格<br />（万元/台件）
			</th>
			<th class="TblHead" align="center" width="9%">增添理由</th>
		</tr>
	</thead>
	<tbody id="tab">
		<x:forEach select="$xmlData/data/euipments/list" var="list">
			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr >
				<td align="center">&nbsp; <span
					name="euipments/list[${flag}${index}]@seq_no"><x:out
							select="$list/@seq_no" /></span>
				</td>
				<td ><x:out select="$list/name" /></td>

				<td align="center"><x:out select="$list/model" /></td>

				<td align="center"><x:out select="$list/price" /></td>

				<td><x:out select="$list/remark" /></td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
	</tbody>
</table>
<div class="t_bar">设备购置汇总表（1-10万元设备）</div>
<table  id="tblIncreaseds" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
			<thead >
					<tr style="border:1px solid #B7D1E6">
						
						<th class="TblHead" align="center"  width="9%">序号</th>
						<th class="TblHead" align="center"  width="13%">设备名称及型号</th> 
						<th class="TblHead" align="center"  width="13%">生产国别</th>
						<th class="TblHead" align="center"  width="13%">购置或试制数量</th>
							
				      <th class="TblHead" align="center"  width="13%">单价（万元/台、件）</th> 
						
						<th class="TblHead" align="center"  width="13%">经费预算</th>
						<th class="TblHead" align="center"  width="13%">申请财政资助</th>  
						<th class="TblHead" align="center"  width="13%">用途说明</th>   
						       
					</tr>
			</thead>
			<tbody id="tab">
								
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/increaseds/list" var="list">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr align="center">
						
						<td align="center">
							<span name="increaseds/list[${flag}${index}]@seq_no" ><x:out select="$list/@seq_no"/></span> 
						</td>
						<td align="center">
							<x:out select="$list/name" />
						</td>
						<td align="center">
							<x:out select="$list/country" />
						</td>
						<td align="center">
							<x:out select="$list/amount" />
						</td>
						
						
						
						<td align="center">
							<x:out select="$list/price" />
						</td> 
						
						<td align="center">
							<x:out select="$list/money" />
						</td> 
						
						<td align="center">
							<x:out select="$list/model" />
						</td>
						
			
						<td align="center">
							<x:out select="$list/user_desc" />
						</td> 
						
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					
				</tbody>
		</table>
					
				

<div class="t_bar2">设备购置汇总表（10万元以上设备）</div>
	<table  id="tblEuipmentLists10" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
			<thead >
					<tr style="border:1px solid #B7D1E6">
				
						<th class="TblHead" align="center"  width="9%">序号</th>
						<th class="TblHead" align="center"  width="13%">设备名称及型号</th> 
						<th class="TblHead" align="center"  width="13%">生产国别</th>
						<th class="TblHead" align="center"  width="13%">购置或试制数量</th>
				      <th class="TblHead" align="center"  width="13%">单价（万元/台、件）</th> 
						
						<th class="TblHead" align="center"  width="13%">经费预算</th>
						<th class="TblHead" align="center"  width="13%">申请财政资助</th>  
						
						<th class="TblHead" align="center"  width="13%">用途说明</th>   
					       
					</tr>
			</thead>
			<tbody id="tab">
					
					
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/euipments10/list" var="list">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr align="center">
						
						<td align="center">&nbsp;
							<span name="euipments10/list[${flag}${index}]@seq_no" ><x:out select="$list/@seq_no"/></span> 
						</td>
						<td align="center">
							 <x:out select="$list/name" />
						</td>
						<td align="center">
							<x:out select="$list/country" />
						</td>
						<td align="center">
							<x:out select="$list/amount" />
						</td>
						
						<td align="center">
							<x:out select="$list/price" />
						</td> 
						
						<td align="center">
							<x:out select="$list/money" />
						</td> 
						
						
						<td align="center">
							<x:out select="$list/model" />
						</td>
						
						
						<td align="center">
							<x:out select="$list/user_desc" />
						</td> 
						
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
				
				</tbody>
			</table>
					
					
		
	<table  cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
	
		<col width="9%"/>
		<col width="13%"/>
		<col width="13%"/>
		<col width="13%"/>
      <col width="13%"/>
		<col width="13%"/>
		<col width="13%"/> 
		<col width="13%"/>  
		<tr style="border:1px solid #B7D1E6">
			<td colspan="5" align="center"><strong>合 计</strong></td>
			<td align="center">
				  <x:out select="$xmlData/data/proposal/equipment_fund"/>
			</td>
			<td align="center">
				<x:out select="$xmlData/data/proposal/equipment_app"/>
			</td>
		     <td align="center">/</td>
		</tr>
	</table>


